#!/usr/bin/env node

const http = require('http');

http.createServer((req,res)=>{
  switch(req.method){
  case 'GET':
    res.end(req.method);
    break; 
  case 'POST':
    res.end(req.method);
    break;
  case 'PUT':
    res.end(req.method);
    break;
  case 'DELECT':
    res.method(req.method);
    break;
  default:
    res.end('something wrong!');
  }
}).listen(3456);
